package com.vencent.spring.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 这里只为验证profile是否启用， 没有考虑过多的规范。
 * 如果没有Controller注解，必须配置RequestMapping，否则就会找不到
 * @author 1d
 *
 */
@RequestMapping()
public class PersonController {
	
	private String liked;
	
	public PersonController(String liked) {
		super();
		this.liked = liked;
	}
	
	@ResponseBody
	@RequestMapping("/person")
	public PersonController play(){
		System.out.println(liked);
		return new PersonController(liked);
	}
}
